import request from '@/utils/request'

// 查询销售信息列表
export function listCustomer(data) {
  return request({
    url: '/saledata/customer/list',
    method: 'post',
    data: data
  })
}

// 查询销售信息详细
export function getCustomer(id) {
  return request({
    url: '/saledata/customer/' + id,
    method: 'get'
  })
}

// 新增销售信息
export function addCustomer(data) {
  return request({
    url: '/saledata/customer/add',
    method: 'post',
    data: data
  })
}

// 修改销售信息
export function updateCustomer(data) {
  return request({
    url: '/saledata/customer/edit',
    method: 'post',
    data: data
  })
}

// 删除销售信息
export function delCustomer(id) {
  return request({
    url: '/saledata/customer/remove/' + id,
    method: 'post'
  })
}
//汇总
export function statistic() {
  return request({
    url: '/saledata/customer/statistic',
    method: 'post'
  })
}
